package com.dai.designpattern.prototype.general;

/**
 * @author daijiyong
 */
public class Test {
    public static void main(String[] args) {
        //创建原型对象
        Man prototype = new Man();
        prototype.setAge(18);
        prototype.setName("daijiyong");
        System.out.println(prototype);

        //拷贝原型对象
        Man cloneType = prototype.clone();
        System.out.println(cloneType);

    }


}
